import { BasicColumn, FormSchema } from '@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '类型名称',
    dataIndex: 'name',
    width: 120,
  },
  {
    title: '描述',
    dataIndex: 'desc',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '类型名称',
    component: 'Input',
    colProps: { span: 4 },
  },
  {
    field: 'desc',
    label: '描述',
    component: 'Input',
    colProps: { span: 4 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'name',
    label: '类型名称',
    component: 'Input',
    required: true,
    colProps: { span: 24 },
  },
  {
    field: 'desc',
    label: '描述',
    component: 'InputTextArea',
    required: true,
    colProps: { span: 24 },
  },
];
